$black_light_color: #fad7a2;
$black_dark_color: #000;

$grey_light_color: #fff;
$grey_dark_color: #595959;

$orange_light_color: #ac241b;
$orange_dark_color: #ff9c73;

.black_theme {
  color: $black_light_color;
  background: url("https://theater-static-1320245876.cos.ap-guangzhou.myqcloud.com/static/pay/bg_black.png")
    no-repeat;
  background-size: cover;

  .header {
    .one {
      color: $black_light_color;
      background: $black_dark_color;
    }

    .two {
      color: $black_dark_color;
      background: $black_light_color;
    }
  }
}

.grey_theme {
  background: url("https://theater-static-1320245876.cos.ap-guangzhou.myqcloud.com/static/pay/bg_grey.png")
    no-repeat;
  background-size: cover;

  .header {
    .one {
      color: $grey_light_color;
      background: $grey_dark_color;
    }

    .two {
      color: $grey_dark_color;
      background: $grey_light_color;
    }
  }

  .guidance {
    color: $grey_dark_color;
    background: $grey_light_color;
  }
}

.orange_theme {
  background: url("https://theater-static-1320245876.cos.ap-guangzhou.myqcloud.com/static/pay/bg_orange.png")
    no-repeat;
  background-size: cover;

  .header {
    .one {
      background: $orange_light_color;
    }

    .two {
      color: $orange_light_color;
      background: $orange_dark_color;
    }
  }

  .give {
    color: $orange_light_color;
  }

  .guidance {
    color: #eb473e;
    background: #ffd6d1;
  }
}

.list {
  display: flex;
  flex-flow: row wrap;
  align-content: flex-start;
  justify-content: flex-start;
  padding-bottom: 15px;
}

.item {
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex: 0 0 47%;
  align-items: center;
  justify-content: center;
  height: 110px;
  margin: 0 12px 12px 0;
  // overflow: hidden;
  color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  line-height: 18px;

  div {
    display: -webkit-box;
    padding: 2px 5px;
    overflow: hidden;
    font-size: 12px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .one {
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .two {
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .hide {
    visibility: hidden;
  }
}

.body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;

  .total {
    min-width: 66px;
    font-size: 18px;
    text-align: center;

    span {
      font-size: 12px;
    }
  }

  .guidance {
    display: -webkit-box;
    padding: 0 4px;
    overflow: hidden;
    font-size: 12px;
    line-height: initial;
    word-break: break-all;
    border-radius: 5px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
}

.footer {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;

  .desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }

  .give {
    margin: 0 2px;
    font-size: 16px;
  }
}

.selected {
  position: absolute;
  right: 15px;
  bottom: 10px;
  width: 50px;
  height: 50px;
  background-size: 100% 100%;
  transform-origin: 0 0;
  animation: scaleHand 0.5s alternate infinite linear;
}

@keyframes scaleHand {
  0% {
    transform: scale(1) translate3d(0, 0, 0);
  }

  100% {
    transform: scale(1.1) translate3d(8px, 8px, 0);
  }
}
